package com.yipinhouse.reception.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.loan.client.param.AccumulationLoanParam;
import com.yipinhouse.loan.client.param.BusinessLoanParam;
import com.yipinhouse.loan.client.param.CombinedLoanParam;
import com.yipinhouse.loan.client.result.CalLoanResult;
import com.yipinhouse.reception.client.param.AccumulationLoanWebParam;
import com.yipinhouse.reception.client.param.BusinessLoanWebParam;
import com.yipinhouse.reception.client.param.CombinedLoanWebParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "loanWbeCalClient", name = "reception", path = "reception")
public interface LoanCalWebQueryClient {

    /**
     * 商业贷款
     * @param param
     * @return
     */
    @GetMapping("/calBusinessLoan")
    Result<CalLoanResult> calBusinessLoan(BusinessLoanWebParam param);

    /**
     * 公积金贷款
     * @param param
     * @return
     */
    @GetMapping("/calAccumulationLoan")
    Result<CalLoanResult> calAccumulationLoan(AccumulationLoanWebParam param);


    /**
     * 组合贷款
     * @param param
     * @return
     */
    @GetMapping("/calCombinedLoan")
    Result<CalLoanResult> calCombinedLoan(CombinedLoanWebParam param);
}
